import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name:"home1",
        component: () => import('../view/Main.vue'),
        redirect: 'home',
        children: [
            // {
            //     path: 'home',
            //     name: 'home',
            //     component: () => import('../view/Home/index.vue')
            // },
            // {
            //     path: 'user',
            //     name: 'user',
            //     component: () => import('../view/User/index.vue')
            // },
            // {
            //     path: 'main',
            //     name: 'main',
            //     component: () => import('../view/Main/index.vue')
            // },

            // {
            //     path: 'page1',
            //     name: 'page1',
            //     component: () => import('../view/other/page1/index.vue')
            // },
            // {
            //     path: 'page2',
            //     name: 'page2',
            //     component: () => import('../view/other/page2/index.vue')
            // }


        ]
    },
    {
        path:'/login',
        name:'login',
        component:()=>import('../view/Login/index.vue')
    }
]

export default createRouter({
    routes,
    history: createWebHashHistory()
})